package Pattern.Tempareture.demo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TemparatureInChina {
    public void getTemparature() {
        String current = new SimpleDateFormat("YYYYMMDDHHMISS").format(new Date());
        String quotewebDource = "http://api.data.cma.cn:8090/api?userId=5546258859083jl9v&pwd=OqO7j2d" +
                "&dataFormat=json&interfaceId=getSurfEleByTimeRangeAndStaID&dataCode=SURF_CHN_MUL_HOR" +
                "&timeRange=[" + current + "," + current + "]" +
                "&staIDs=54433&elements=TEM";
        System.out.println(quotewebDource);
    }

    public static void main(String[] args){
        new TemparatureInChina().getTemparature();
    }
}
